#include <stdio.h>

int main()
{
	int arr[4][5] = {
		{1,2,3,4,5},
		{1,2,3,4,5},
		{1,2,99,4,5},
		{1,2,3,4,5}};
	
	int max = arr[0][0] , x = 0 , y = 0;
	for(int i=0; i<4; i++)
	{
		for(int j=0; j<5; j++)
		{
			if(arr[i][j] > max)
			{
				max = arr[i][j];
				x = i;
				y = j;
			}
		}
	}

	printf("%d %d\n",x,y);
}
